//
//  WmcTeamMemberDetail.swift
//  YPWatermarkCamera
//
//  Created by yupao_ios_macmini06 on 2022/9/22.
//

import Foundation

struct WmcTeamMemberDetailModel: YPNetworkJsonProtocol {
    /// 成员id
    var memberId: Int?
    /// 成员备注
    var remark: String?
    /// 用户名称
    var name: String?
    /// 用户头像
    var avatar: String?
    /// 手机号
    var phone: String?

    /// 新增额外字段传参
    var teamId: Int?

    var showName: String {
        var tempName = ""
        if remark != nil {
            tempName = remark ?? ""
        } else {
            tempName = name ?? ""
        }
        return tempName
    }
}
